//
// Created by 21577 on 2025/3/4.
//
#include<stdio.h>
int main(){
    int wage;
    int out1,out2,out3,out4,out5;
    scanf("%d",&wage);
    if(wage<=100000){
        printf("10\n");
    } else if(wage<=200000){
        out1=100000*0.1+(wage-100000)*0.075;
        printf("%d\n",out1);
    } else if(wage<=400000){
        out2=100000*0.1+100000*0.075+(wage-200000)*0.05;
        printf("%d\n",out2);
    }else if(wage<=600000){
        out3=100000*0.1+100000*0.075+200000*0.05+(wage-400000)*0.03;
        printf("%d\n",out3);
    }else if(wage<=10000000){
        out4=100000*0.1+100000*0.075+200000*0.05+200000*0.03+(wage-600000)*0.015;
        printf("%d\n",out4);
    } else{
        out5=100000*0.1+100000*0.075+200000*0.05+200000*0.03+400000*0.015+(wage-1000000)*0.01;
        printf("%d\n",out5);
    }
    return 0;
}